<?php

class Application_Form_EditarUsuario extends Zend_Form {
	
	public function init() {
		// definicoes basicas do form
		$this->setName ( 'editarUsuario' );
		$this->setAction ( '/meus-dados/dados-atualizados' );
		$this->setMethod ( 'post' );
		$this->setAttrib ( 'enctype', 'multipart/form-data' );
		$this->setAttrib ( 'id', 'form-editarUsuario' );
		
		// elementos do form
		$nome = new Zend_Form_Element_Text ( "nome" );
		$nome->setLabel ( "Nome:" )->setAttrib ( "class", "inp-form" );
		
		$email = new Zend_Form_Element_Text ( "login_email" );
		$email->setLabel ( "E-mail:" )->setAttrib ( "class", "inp-form" );
		
		$endereco = new Zend_Form_Element_Textarea ( "endereco" );
		$endereco
			->setLabel ( "Endereco:" )
			->setAttrib("rows", "5")
			->setAttrib("cols", "40")
			->setAttrib ( "class", "inp-form" );
		
// 		$senha = new Zend_Form_Element_Password ( "senha" );
// 		$senha->setLabel ( "Senha:" )->setAttrib ( "class", "inp-form" );
		
		$submit = new Zend_Form_Element_Submit ( "submit" );
		$submit->setLabel ( "Alterar cadastro" );
		
		$this->addElements ( array ($nome, $endereco, $email, $submit ) );
	}

}




//Application_Form_EditarUsuario extends Zend_Form

